﻿using StudyOnline.Models.Utility_Element;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace StudyOnline.Models
{
    /// <summary>
    /// 教员
    /// </summary>
    public class Instructor
    {
        public int InstructorID { get; set; }
        
        /// <summary>
        /// 姓
        /// </summary>
        public string LastName { get; set; }

        /// <summary>
        /// 名
        /// </summary>
        public string FirstName { get; set; }
        
        [Display(Name = "全名")]
        public string FullName
        {
            get
            {
                return LastName + ", " + FirstName;
            }
        }

        /// <summary>
        /// 性别
        /// </summary>
        public Gender Gender { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Picture { get; set; }

        /// <summary>
        /// 口号
        /// </summary>
        public string Slogan { get; set; }

        /// <summary>
        /// 每小时价格
        /// </summary>
        public int Price_OneHour { get; set; }

        //授课年级
        public virtual ICollection<Instructor_Grade> Instructor_Grades
        {
            set;
            get;
        }

        /// <summary>
        /// 授课学科
        /// </summary>
        public virtual ICollection<Instructor_Subject> Instructor_Subjects { get; set; }

        /// <summary>
        /// 授课地点
        /// </summary>
        public virtual ICollection<Instructor_Location> Instructor_Location { set; get; }


        public int? SchoolID { get; set; }
        /// <summary>
        /// 在读高校
        /// </summary>
        public virtual School School { set; get; }



    }
}